Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

introduce UIFeatures trait #3658

Merged
merged 1 commit into from
Apr 5, 2024
Merged

Conversation

TychoVrahe
Copy link
Contributor

@TychoVrahe TychoVrahe commented Mar 28, 2024

Adds an abstraction over different UI implementations

Two UI traits are introduced:
UIFeaturesBootloader
UIFeaturesCommon

UIFeaturesFirmware would be next step.

API files are introduced too, defining an unified interface between C and rust in ui/api/bootloader_c.rs and ui/api/common_c.rs . Purpose is to make all necessary type conversions here, so that specific UI implementations for different models get already pure rust arguments, and the type conversions are same for all UIs.

@TychoVrahe TychoVrahe self-assigned this Mar 28, 2024
Base automatically changed from matejcik/simplified-trait to main March 28, 2024 12:04
@TychoVrahe TychoVrahe force-pushed the tychovrahe/simplified_trait/refactor branch from 3cecd67 to 0524a35 Compare March 28, 2024 12:22
Copy link

github-actions bot commented Mar 28, 2024

core UI changes device test click test persistence test
T2T1 Model T test(screens) main(screens) test(screens) main(screens) test(screens) main(screens)
T2B1 Safe 3 3280 test(screens) main(screens) 2724
T3T1 test(screens) main(screens) test(screens) main(screens) test(screens) main(screens)
All main(screens)

@TychoVrahe TychoVrahe marked this pull request as ready for review March 28, 2024 12:38
@TychoVrahe TychoVrahe requested a review from prusnak as a code owner March 28, 2024 12:38
@TychoVrahe TychoVrahe requested review from matejcik and removed request for prusnak March 28, 2024 12:38
Copy link
Member

@mmilata mmilata left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

otherwise 👍 for the C api improvements

core/embed/rust/src/ui/model_tr/mod.rs Outdated Show resolved Hide resolved
@obrusvit obrusvit mentioned this pull request Apr 5, 2024
@TychoVrahe TychoVrahe force-pushed the tychovrahe/simplified_trait/refactor branch from 6625666 to 37ff46a Compare April 5, 2024 13:02
…over different UI implementation

[no changelog]
@TychoVrahe TychoVrahe force-pushed the tychovrahe/simplified_trait/refactor branch from 37ff46a to a742a24 Compare April 5, 2024 13:07
@TychoVrahe TychoVrahe merged commit 535a052 into main Apr 5, 2024
73 of 78 checks passed
@TychoVrahe TychoVrahe deleted the tychovrahe/simplified_trait/refactor branch April 5, 2024 16:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants